<form class="layui-form" onsubmit="return false;">
    <input type="hidden" name="id" value="#(bean.id??)">
    <input type="hidden" name="type" value="#(bean.type??)">
    <div class="main-container">
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label required">字典标签</label>
                <div class="layui-input-inline">
                    <input type="text" name="label" value="#(bean.label??)" lay-verify="required" autocomplete="off" placeholder="请输入字典标签" class="layui-input">
                </div>
                <label class="layui-form-label required">字典键值</label>
                <div class="layui-input-inline">
                    <input type="text" name="value" value="#(bean.value??)" lay-verify="required" autocomplete="off" placeholder="请输入字典键值" class="layui-input">
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">回显样式</label>
            <div class="layui-input-block">
                <select name="listClass">
                    <option value="">-- 请选择 --</option>
                #DICTS(type="css_class")#for(item : dicts)
                    <option value="#(item.value)"#if(item.value == bean.listClass??) selected#end>#(item.label)</option>
                #end#end
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">样式属性</label>
            <div class="layui-input-block">
                <input type="text" name="cssClass" value="#(bean.cssClass??)" lay-verify="" autocomplete="off" placeholder="请输入样式属性" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <textarea name="remark" placeholder="请输入备注内容" class="layui-textarea">#(bean.remark??)</textarea>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label required">是否默认</label>
                <div class="layui-input-inline">
                    <input type="radio" name="isDefault" value="true" title="是" #if(bean.isDefault??) checked #end>
                    <input type="radio" name="isDefault" value="false" title="否" #if(!bean.isDefault??) checked #end>
                </div>
                <label class="layui-form-label required">状态</label>
                <div class="layui-input-inline">
                    <input type="radio" name="status" value="ON" title="启用" #if(bean.status?? == 'ON' || bean.status?? == null) checked #end>
                    <input type="radio" name="status" value="OFF" title="禁用" #if(bean.status?? == 'OFF') checked #end>
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label required">排序号</label>
                <div class="layui-input-inline">
                    <input type="text" name="sort" value="#(bean.sort??)" lay-verify="required|number" autocomplete="off" placeholder="请输入排序号" class="layui-input">
                </div>
            </div>
        </div>
    </div>
    <div class="layui-form-item" style="display: none;">
        <div class="layui-input-block">
            <button type="submit" class="pear-btn pear-btn-primary pear-btn-sm" lay-submit="" lay-filter="data-save" id="data-save">
                <i class="layui-icon layui-icon-ok"></i> 提交
            </button>
        </div>
    </div>
</form>
#include("/admin/_common/foot.html")
<script type="text/javascript">
layui.use(['jquery', 'form', 'common'], function() {
    var $ = layui.jquery;
    var form = layui.form;
    var common = layui.common;
});
</script>
